﻿Namespace FTTK.Entities.Rest
    <Serializable()>
    Public NotInheritable Class GalleryThumbnailSize

        Private Sub New()

        End Sub

        Public Shared Function FromEntitySize(size As Entities.GalleryThumbnailSize) As Integer
            Select Case size
                Case Entities.GalleryThumbnailSize.Size160
                    Return Size160
                Case Entities.GalleryThumbnailSize.Size110
                    Return Size110
                Case Else
                    Return Size400
            End Select
        End Function

        Public Shared ReadOnly Property Size160 As Integer
            Get
                Return 160
            End Get
        End Property


        Public Shared ReadOnly Property Size110 As Integer
            Get
                Return 110
            End Get
        End Property

        Public Shared ReadOnly Property Size400 As Integer
            Get
                Return 400
            End Get
        End Property

    End Class
End Namespace